package com.dwms.feign.declare;

import com.dwms.entity.ListRequest;
import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.jeOutbound.request.JeOutboundImportRequest;
import com.dwms.entity.declare.jeOutbound.request.JeOutboundQueryRequest;
import com.dwms.entity.declare.jeOutbound.request.JeOutboundRequest;
import com.dwms.entity.declare.jeOutbound.response.JeOutboundResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: JeOutboundController
 * @Description: JeOutbound
 * @Create 2025-09-28 20:48:45
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(name = "declare-server", path = "/jeOutbound")
public interface JeOutboundFeignClient {
    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<JeOutboundResponse>> findPage(@RequestBody JeOutboundQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 修改
     *
     * @param jeOutboundRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody JeOutboundRequest jeOutboundRequest);

    /**
     * 删除
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/delete")
    Result delete(@RequestBody QueryRequest query);

    /**
     * 出区导入
     * @param listRequest
     * @return
     */
    @PostMapping("/importExcel")
    Result importExcel(ListRequest<JeOutboundImportRequest> listRequest);

    /**
     * 导出清单
     *
     * @param query
     * @return
     */
    @PostMapping("/exportInvt")
    Result<String> exportInvt(@RequestBody QueryRequest query);

    /**
     * 导出清单明细
     *
     * @param query
     * @return
     */
    @PostMapping("/exportInvtDetail")
    Result<String> exportInvtDetail(@RequestBody QueryRequest query);

    /**
     * 导出核注清单
     *
     * @param query
     * @return
     */
    @PostMapping("/exportCheckInvt")
    Result<String> exportCheckInvt(@RequestBody QueryRequest query);
}
